package com.yidu.t279;

import com.yidu.t279.dao.PlaceMapper;
import com.yidu.t279.dao.UserDao;
import com.yidu.t279.pojo.Place;
import com.yidu.t279.pojo.User;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

/**
 * @author ：liandyao
 * @description：TODO
 * @date ：2020/4/24 13:22
 */
public class PlaceTest {

    @Test
    public void findAll(){
        SqlSession session = App.getSqlSession();
        PlaceMapper placeMapper = session.getMapper(PlaceMapper.class);
        List<Place> list = placeMapper.findAll();
        System.out.println(list.size());
        for (Place place:list){
            System.out.println(place.toString());
        }
        session.close();
    }
}
